{% from "common/_formhelper.html" import render_field %}
{{ render_field(form.name, class_="form-control", required=True) }}

{{ render_field(form.nick_name, class_="form-control") }}

{% from "common/_formhelper.html" import render_radio %}
{{ render_radio(form.gender) }}

{{ render_field(form.day_of_birth, placeholder="yyyy-mm-dd", class_="form-control", required=True, validDate=True) }}

<div class="form-group">      
    <label class="control-label" for="phone">{{translate('手机号码')}}</label>        
    <input class="form-control" id="phone" placeholder="{{translate('请填写手机号码')}}" name="phone" pattern="^((\d{3,4}-?)?\d{7,8})|\d{11}|\d{12}$" required="" type="text" value="" aria-required="true"> 
    {% if not in_user_verify_whitelist %}
    <button class="btn-sm" id="sendVerify">{{translate('发送验证码')}}</button>
    <button class="btn-sm" id="changePhone">{{translate('修改')}}</button>
    {% endif %}
</div>

{% if not in_user_verify_whitelist %}
<div class="form-group" id="ver_con">      
    <label class="control-label" for="phone">{{translate('验证码')}}</label>        
    <input class="form-control" placeholder="{{translate('请填写验证码')}}" id="verify" name="verify" type="text" value="">      
</div>
{% endif %}

{% from "common/_formhelper.html" import render_email_field %}
{{ render_email_field(form.email, placeholder=translate('请填写Email，以便我们发送培训资料等信息') , class_="form-control") }}

{% from "common/_formhelper.html" import render_select %}
{{ render_select(form.level) }}
